package STUDENT.TRANDAODAIVI.ARRAY;
class Array{
	public static int getMinimum(int[] array){
		for (int i=0;i<array.length;i++){
			for (int j=i+1;j<array.length;j++){
				if(array[i]>array[j]){
					int x=array[i];
					array[i]=array[j];
					array[j]=x;
				}
			}	
		}
		return array[0];
	}
}

public class BT3 {
	public static void main(String[] args) {
		int array[]={1,2,4,5,10,100,2,-22,100,99,80,5};
		System.out.println(Array.getMinimum(array));
	}
}
